﻿<!DOCTYPE html PUBLIC>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>运营管理平台 - 登录</title>
<link rel="stylesheet" href="fz/css/admin.css" type="text/css"/>
<script src='fz/js/admin/runtime.js'></script>

<script type="text/javascript">
$(function() {
	$(".buttonsubmit").click(function() {
		login();
	});
	//点ENTER登录
	$("#password").keydown(function(e) {
        if(e.keyCode == "13") {
        	login();
		}
    });
	
	function login() {
		var phone = $("#phone").val();
		var password = $("#password").val();
		
		var phoneReg = /^[1][3578][0-9]{9}$/;
		var pwdReg = /^[0-9A-Za-z!@#$%&*_-]{6,25}$/;
		if(!phoneReg.test(phone)) {
			Utils.msgDialog("手机号码格式不正确！");
        	return;
    	}
		if(!pwdReg.test(password)) {
			Utils.msgDialog("密码格式不正确！");
			return;
		}
		
		var param = {
				phone: phone,
				password: password,
	        };
	        AQ.callAQJSON("adminLogin.do", param, function(result) {
	        	window.location.href = "AD77F69O3WHMOW3F.do";
	        	location.reload();
	        }, function(err, code) {
	        	Utils.msgDialog(err);
	        });
	}
});
</script>

</head>

<body class="bg">
<div class="loginmian"></div>
<div style="height:231px;margin:-55px auto 0;width:1024px;">

<div class="logininner">
	<div id="logintip"></div>
	<div class="login">
	<form>
		<div style="height:35px;line-height:35px;">
			<label>手　机</label>
			<input class="text-input" type="text" id="phone" />
		</div>
		<div style="height:35px;line-height:35px;">
			<label>密　码</label>
			<input type="password" class="text-input" id="password" />
		</div>
		<div style="height:30px;line-height:30px;">
			<label>&nbsp;</label>
			<input type="button" class="buttonsubmit" style="width:120px;" value="登　录" />
		</div>
	</form>
	</div>
</div>

</div>

</body>
</html>
